<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #main {
            width: 220px;
            height: 300px;
            border: 1px solid black;
            display: flex;
            display: -webkit-flex;
             flex-direction:row;
             flex-wrap: wrap ;
        }

        #main>div{
            width: 50px; 
            height: 100px;
            background-color: aquamarine;
        }
    </style>
</head>

<body>

    <div id="main">
        <div style="background-color:coral;">红色1111</div>
        <div style="background-color:lightblue;">蓝色222</div>
        <div style="background-color:lightgreen;">带有更多非得发热菲特突然的风格内容的绿色 div3333</div>
        <div style="background-color:coral;">红色1111</div>
        <div style="background-color:lightblue;">蓝色222</div>
        <div style="background-color:coral;">红色1111</div>
        <div style="background-color:lightblue;">蓝色222</div>
    </div>
    <script>


    </script>
</body>

</html>